package ip.dto;

/***********************************************************************
 * Module:  User.java
 * Author:  mojsilo
 * Purpose: Defines the Class User
 ***********************************************************************/

import java.io.Serializable;
import java.util.*;

public class UserDTO implements Serializable
{
	private static final long serialVersionUID = -903403998271041683L;
	private long userId;
	private java.lang.String firstname;
	private java.lang.String lastname;
	private java.lang.String username;
	private java.lang.String password;
	private java.lang.String jmbg;
	private java.lang.String address;
	private java.lang.String role;

	public Collection usersOrders;

	/**
	 * @return the address
	 */
	public java.lang.String getAddress() {
		return address;
	}

	/**
	 * @param address the address to set
	 */
	public void setAddress(java.lang.String address) {
		this.address = address;
	}

	/**
	 * @return the firstname
	 */
	public java.lang.String getFirstname() {
		return firstname;
	}

	/**
	 * @param firstname the firstname to set
	 */
	public void setFirstname(java.lang.String firstname) {
		this.firstname = firstname;
	}

	/**
	 * @return the jmbg
	 */
	public java.lang.String getJmbg() {
		return jmbg;
	}

	/**
	 * @param jmbg the jmbg to set
	 */
	public void setJmbg(java.lang.String jmbg) {
		this.jmbg = jmbg;
	}

	/**
	 * @return the lastname
	 */
	public java.lang.String getLastname() {
		return lastname;
	}

	/**
	 * @param lastname the lastname to set
	 */
	public void setLastname(java.lang.String lastname) {
		this.lastname = lastname;
	}

	/**
	 * @return the password
	 */
	public java.lang.String getPassword() {
		return password;
	}

	/**
	 * @param password the password to set
	 */
	public void setPassword(java.lang.String password) {
		this.password = password;
	}

	/**
	 * @return the role
	 */
	public java.lang.String getRole() {
		return role;
	}

	/**
	 * @param role the role to set
	 */
	public void setRole(java.lang.String role) {
		this.role = role;
	}

	/**
	 * @return the userId
	 */
	public long getUserId() {
		return userId;
	}

	/**
	 * @param userId the userId to set
	 */
	public void setUserId(long userId) {
		this.userId = userId;
	}

	/**
	 * @return the username
	 */
	public java.lang.String getUsername() {
		return username;
	}

	/**
	 * @param username the username to set
	 */
	public void setUsername(java.lang.String username) {
		this.username = username;
	}

	/**
	 * @return the usersOrders
	 */
	public Collection getUserOrders() {
		return usersOrders;
	}

	/**
	 * @param usersOrders the usersOrders to set
	 */
	public void setUserOrders(Collection usersOrders) {
		this.usersOrders = usersOrders;
	}

	/**
	 * Constructs a <code>String</code> with all attributes
	 * in name = value format.
	 *
	 * @return a <code>String</code> representation 
	 * of this object.
	 */
	public String toString()
	{
		final String TAB = "    ";

		String retValue = "";

		retValue = "UserDTO ( "
			+ super.toString() + TAB
			+ "userId = " + this.userId + TAB
			+ "firstname = " + this.firstname + TAB
			+ "lastname = " + this.lastname + TAB
			+ "username = " + this.username + TAB
			+ "password = " + this.password + TAB
			+ "jmbg = " + this.jmbg + TAB
			+ "address = " + this.address + TAB
			+ "role = " + this.role + TAB
			+ "usersOrders = " + this.usersOrders + TAB
			+ " )";

		return retValue;
	}

}